/**************************************************************
   AUTHOR:  Pat Heard (fullahead.org)
   DATE:    2006.03.19
   PURPOSE: Controls the layout of the site and styles
            the menus
 **************************************************************/



/**************************************************************
   #content: Sets the width of the site.  Make changes here
             to convert to a fixed width site.
 **************************************************************/

#content {  
  height: 100%;
  min-height: 100%;
  text-align: left;
}

#content,
#width {
  /* max-width hack for IE since it doesn't understand the valid css property */
  width: expression(document.body.clientWidth > 1000 ? "1000px" : "94%");  
  max-width: 1000px;
  margin: 0 auto;
}

#content[id],
#width[id] {
  width: 94%;
  height: auto;
}




/**************************************************************
   #header: Holds the site title and header images
 **************************************************************/

#header {
  position: relative;
  height: 99px;
  background-image: url(../images/bg/cabecalhox.png);
  background-repeat: repeat-x;
}

/* Holds the site title and subtitle */
#header #title {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 130px;

  padding: 5px;
  text-align: right;
}

#header h1 {
  margin: 0;
  padding: 10;

  font: 700 3em "trebuchet ms", serif;
  letter-spacing: -3px;
  /* 1 Nao vou precisar dessa transformacao: text-transform: lowercase;*/
  color: #FFF;
}

#header h2 {
	position: absolute;
	top: 0px;
	right: 50px;
	margin: 0;
	padding: 0;
	font: 700 1em "trebuchet ms", serif;
	/* 1 Nao vou precisar dessa transformacao: text-transform: lowercase;*/
  color: #00F0EC;
}


/* Sets where the header images will go */
#header img.left {
  position: absolute;
  z-index: 1;

  top: 0;
  left: 0;
}

#header img.right {
  position: absolute;
  z-index: 0;

  top: 0;
  right: 0;
}

#header img.balloons {
  position: absolute;
  z-index: 2;
  top: 0px;
  right: 250px;
}



/**************************************************************
   #mainMenu: The top level site menu
 **************************************************************/

#mainMenu { 
  float: left;
  width: 100%;
  clear: both;  
}

#mainMenu ul {
  margin: 0;
  padding: 0;
}

#mainMenu li {
  display: inline;
  list-style: none;
  margin: 0;
  padding: 0;
}

#mainMenu li a {
  float: left;
  margin: 0 2px;
  padding: 5px 0.5em;

  font: 400 1.6em "trebuchet ms", serif;
  text-decoration: none;
  text-transform: lowercase;
  color: #093B9E;
}

#mainMenu li a:hover,
#mainMenu li a.here {
  color: #83ade1;
  border-top: 6px solid #ebebeb;
}

#mainMenu li a.last {
  margin-right: 0;
}




/**************************************************************
 #width25 floatLeft leftColumn  .sideMenu: The side bar menu
 **************************************************************/


ul.sideMenu {
  margin: 0;
  padding: 0;
}

.sideMenu li.here ul,
.sideMenu li.here ul ul {
	margin:0;
	padding: 0px;
	width: 120px; /* Width of Menu Items */
	border-bottom: 1px solid #093B9E;
	border: 1px solid #093B9E;		
	background: #ebebeb; /* IE6 Bug */
	font-size: 100%;
	}

.sideMenu li.here ul li {

	position: relative;
	list-style: none;
/*	border: 1px solid #444;	*/
	border-bottom: 1px solid #093B9E;
	padding: 0px;
	}

.sideMenu li.here ul li a {

	display: block;
	text-decoration: none;
	color: #093B9E;
	padding: 0px;
/*	border: 1px solid #444;
	border-bottom: 1px solid #444;*/

	}

/* Fix IE. Hide from IE Mac \*/
* html .sideMenu li.here ul li { float: left; height: 1%; }
* html .sideMenu li.here ul li a { height: 1%; }
/* End */

.sideMenu li.here ul ul {
	position: absolute;
	display: none;
	left: 120px; /* Set 1px less than menu width */
	top: 0;
	}

.sideMenu li.here ul li ul li a { padding: 2px 5px; } /* Sub Menu Styles */

.sideMenu li.here ul li:hover ul ul,
.sideMenu li.here ul li:hover ul ul ul,
.sideMenu li.here ul li.over ul ul,
.sideMenu li.here ul li.over ul ul ul { display: none; } /* Hide sub-menus initially */

.sideMenu li.here ul li:hover ul,
.sideMenu li.here ul li li:hover ul,
.sideMenu li.here ul li li li:hover ul,
.sideMenu li.here ul li.over ul,
.sideMenu li.here ul li li.over ul,
.sideMenu li.here ul li li li.over ul { display: block; } /* The magic */

.sideMenu li.here ul li.menuparent { background: #ebebeb url(arrow.gif) right center no-repeat; }

.sideMenu li.here ul li.menuparent:hover,
.sideMenu li.here ul li.over { background-color: #fefefe; }

.sideMenu li.here ul li a:hover {   
  color: #83ade1;
}


.sideMenu li.here li:hover ul {
 display: block; }
 
 
 
/*------------------------------------------------------------
 * Outro estilo para o menu
 -------------------------------------------------------------*/
ul#primary-nav,
ul#primary-nav ul {
	margin: 0px;
	padding: 0px;
	width: 170px; /* Width of Menu Items */
	border-bottom: 1px solid #ccc;
	background: #f5f5f5; /* IE6 Bug */
	font-size: 100%;
	}

ul#primary-nav li {
	position: relative;
	list-style: none;
	}

ul#primary-nav li a {
	display: block;
	text-decoration: none;
	color: #777;
	padding: 5px;
	border: 1px solid #ccc;
	/*border-bottom: 0;*/
	}

/* Fix IE. Hide from IE Mac \*/
* html ul#primary-nav li { float: left; height: 1%; border-bottom: 1px solid #ccc;}
* html ul#primary-nav li a { height: 1%;  border-bottom: 1px solid #ccc;}
/* End */



ul#primary-nav ul {
	position: absolute;
	display: none;
	left: 169px; /* Set 1px less than menu width */
	top: 0px;
	}

ul#primary-nav li ul li a { padding: 2px 5px; } /* Sub Menu Styles */

ul#primary-nav li:hover ul ul,
ul#primary-nav li:hover ul ul ul,
ul#primary-nav li.over ul ul,
ul#primary-nav li.over ul ul ul { display: none; } /* Hide sub-menus initially */

ul#primary-nav li:hover ul,
ul#primary-nav li li:hover ul,
ul#primary-nav li li li:hover ul,
ul#primary-nav li.over ul,
ul#primary-nav li li.over ul,
ul#primary-nav li li li.over ul { display: block; } /* The magic */

ul#primary-nav li.menuparent { background: transparent url(../images/bg/bullet.gif) right center no-repeat; }

ul#primary-nav li.menuparent:hover,
ul#primary-nav li.over { background-color: #ebebeb; }

ul#primary-nav li a:hover { color: #83ade1; }

/**************************************************************
 #width25 floatLeft leftColumn  .sideMenu: The side bar menu
 **************************************************************/

/* Active menu item */
.login {
  display: block;  
  padding: 5px;
  /*color: #65EBFF;*/
  background: #ebebeb;
}


/**************************************************************
   #page: Holds the main page content.
 **************************************************************/

#page {
  float: left;
  width: 100%;
  clear: both;
  background: #ebebeb;
  padding-bottom: 4em;
}




/**************************************************************
   #footer: The page footer - will stick to the bottom if not
            enough content.
 **************************************************************/

#footer {
  float: left;
  width: 100%;
  clear: both;
  
  margin-top: -3.8em;
  background: #000 url(../images/bg/footer.jpg) repeat-x top left;
}

/* Sets the width of the footer content */
#footer #width {
  position: relative;
  z-index: 3;
  font-size: 0.85em;
  padding-top: 27px;
}



/**************************************************************
   Width classes used by the site columns
 **************************************************************/

.width100 {
  width: 100%;
}

.width75 {
  width: 74%;
}

.width50 {
  width: 49.7%;
}

.width33 {
  width: 32.7%;
}

.width25 {
  width: 24.7%;
}



/**************************************************************
   Alignment classes
 **************************************************************/

.floatLeft {
  float: left;
}

.floatRight {
  float: right;
}

.alignLeft {
  text-align: left;
}

.alignRight {
  text-align: right;
}



/**************************************************************
   Generic display classes
 **************************************************************/

.clear {
  clear: both;
}

.block {
  display: block;
}

.small {
  font-size: 0.8em;
}

.green {
  color: #A1FF45;
}

.red {
  color: #EA1B00;
}

.grey {
  color: #666;
}

.grey a {
  color: #999;
}

.grey a:hover {
  color: #EEE;
}

.gradient {
  margin-bottom: 2em;
  background: #EBEBEB /*url(../images/bg/gradient.jpg) repeat-x bottom left*/; 
}
